<template>
    <div class="artGallery">
      <Banner  />
      <div class="title f f-ac f-jc">
        <div class="containers">
          <Type-btn
            :list="typeList"
            :current="current"
            key-value="value"
            top="30"
            row-gap="30" 
            @click="handleType"
          />
        </div>
      </div>
      <router-view />
    </div>
  </template>
  <script>
  import Banner from "@/components/Banner/index";
  export default {
    components: { Banner },
    data() {
      return {
        current: "news0", //当前选中
        typeList: [
          { name: "文化馆简介", value: "news0", url: "/art-gallery/intro" },
          { name: "联系我们", value: "news1", url: "/art-gallery/about" },
        ],
      };
    },
    methods: {
      // 点击按钮
      handleType(i) {
        this.current = i.value;
        this.$router.push({
          path: i.url,
          query: {},
        });
      },
    },
  };
  </script>
  <style lang="scss" scoped>
  .artGallery {
    width: 100%;
    margin-bottom: 100px;
  
    .title {
      background-color: #f5f5f5;
      height: 64px;
      line-height: 64px;
    }
  
    .information {
      .info-title {
        display: flex;
        align-items: center;
  
        .left-bedeck {
          width: 3px;
          height: 36px;
          background: #193980;
        }
  
        .right {
          display: flex;
          flex-direction: column;
          margin-left: 15px;
  
          .top-title {
            color: #193980;
            font-family: PingFang SC;
            font-size: 18px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
          }
  
          .bot-title {
            color: #909090;
            font-family: PingFang SC;
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
          }
        }
      }
  
      width: 1200px;
      background: #fff;
      border-radius: 10px;
      background: #fff;
      box-shadow: 0px 3px 10px 0px rgba(217, 217, 217, 0.5);
      margin-top: 20px;
      margin-bottom: 20px;
      height: calc(100% - 64px);
      padding: 20px;
  
      .details {
        margin-top: 20px;
        font-size: 16px;
      }
    }
  }
  </style>
  